package com.gxar.quick.ar.server.base.common.enums;

/**
 * @author nice
 * @version 1.0
 * @created 2023/11/25.
 */
public enum LicenseEnum {

    BY(0, "by", "须注明作者；允许商业用途"),
    BY_SA(1, "by-sa", "须注明作者；版本更改要求相同许可证；允许商业用途"),
    BY_ND(2, "by-nd", "须注明作者；修改后版本不得分发；允许商业用途"),
    BY_NC(3, "by-nc", "须注明作者；不允许商业用途"),
    BY_NC_SA(4, "by-nc-sa", "须注明作者；不允许商业用途；版本更改要求相同许可证"),
    BY_NC_ND(5, "by-nc-nd", "须注明作者；不允许商业用途；修改后版本不得分发"),
    CC0(6, "cc0", "非强制信用；允许商业用途");

    private final Integer code;
    private final String name;
    private final String desc;

    LicenseEnum(Integer code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
